package com.jrx.anytxn.investor.mapper.ext;

import com.jrx.anytxn.investor.entity.TlGlInterfaceInvestorInfo;
import com.jrx.anytxn.investor.mapper.base.TlGlInterfaceInvestorInfoMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 出资方总账流水mapper扩展
 *
 * @author liuyang
 * @date  2020-05-21
 **/
public interface ExtTlGlInterfaceInvestorInfoMapper extends TlGlInterfaceInvestorInfoMapper {

    /**
     * 批量插入出资方总账流水
     *
     * @param glInterfaceInfos GL总账流水
     * @return int 插入的条数
     * @author liuyang
     * @date  2020-05-21
     */
    int batchInsertGl(List<TlGlInterfaceInvestorInfo> glInterfaceInfos);


    /**
     * 根据日期和机构号查询总账流水list
     */
    List<TlGlInterfaceInvestorInfo> getByDateAndOrgId(@Param("date") Date date);


    /**
     * 获取订单下所有GL流水
     *
     * @param loanId 订单id
     * @param customerId 客户id
     * @param tenantId 租户id
     * @return GL流水
     * @author liuyang
     * @date  2020-06-15
     */
    List<TlGlInterfaceInvestorInfo> selectAllGl(@Param(value="loanId") String loanId,  @Param(value="customerId") String customerId, @Param(value="tenantId") String tenantId);
}